package com.weixing.mall.provider.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.weixing.mall.provider.api.model.vo.ItemVo;
import com.weixing.mall.provider.model.domain.ShopCart;
import com.weixing.mall.provider.model.dto.ShopCartDto;
import com.weixing.mall.provider.model.dto.CartChgNumDto;
import com.weixing.mall.provider.model.vo.ShopCartVo;

import java.util.List;

/**
 * <p>
 * 商品模块-购物车 服务类
 * </p>
 *
 * @author Small
 * @since 2019-11-20
 */
public interface IShopCartService extends IService<ShopCart> {

    void save(ShopCartDto shopCartDto, Long mid);

    void changeNum(CartChgNumDto shopCartEditQuantityDto);

    List<ShopCartVo> selectCartListByMemberId(Long memberId);

    void selectItem(Long itenId);

    void cancelItem(Long itenId);

    void selectAllItem(long currentUserId);

    void cancelAllItem(long currentUserId);

    List<ItemVo> loadSelectedItem(Long memberId);
}
